package com.xci.platform.auth.entity;

import cn.afterturn.easypoi.excel.annotation.Excel;
import cn.afterturn.easypoi.excel.annotation.ExcelIgnore;
import com.xci.platform.core.Constant;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import java.io.Serializable;
import java.util.Date;

/**
 * 系统发布记录
 */
@Data
public class ReleaseHistoryEntity implements Serializable {
    private static final long serialVersionUID = 1L;

    /**
     * 发布主键
     */
    @NotBlank(message = "发布主键不能为空")
    @ExcelIgnore
    private String id;

    /**
     * 版本号
     */
    @NotBlank(message = "版本号不能为空")
    @Excel(name = "版本号")
    private String version;

    /**
     * 颜色架构
     */
    @NotBlank(message = "颜色架构不能为空")
    @Excel(name = "颜色架构")
    private String colorSchema;

    /**
     * 新增内容
     */
    @Excel(name = "新增内容")
    private String newContent;

    /**
     * 修复内容
     */
    @Excel(name = "修复内容")
    private String fixContent;

    /**
     * 优化内容
     */
    @Excel(name = "优化内容")
    private String optimizeContent;

    /**
     * 操作用户主键
     */
    @NotBlank(message = "操作用户主键不能为空")
    @ExcelIgnore
    private String operateUserId;

    /**
     * 操作用户
     */
    @Excel(name = "操作用户")
    private String operateUserName;

    /**
     * 操作日期
     */
    @Excel(name = "操作日期", exportFormat = Constant.DefaultDateTimePattern)
    private Date operateDateTime;
}
